package com.Iconcat.system.controller;


import com.Iconcat.system.entity.MovieBoxOffice;
import com.Iconcat.system.entity.MovieProject;
import com.Iconcat.system.response.Result;
import com.Iconcat.system.service.DrawRecordService;
import com.Iconcat.system.service.MovieProjectService;
import com.Iconcat.system.vo.DrawRecordto;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zzq
 * @since 2023-11-16
 */
@RestController
@RequestMapping("/CatProjec")
@CrossOrigin
@Api(value = "项目",tags = "项目接口")
public class MovieProjectController {
    @Resource
    private MovieProjectService movieProjectService;
    @PostMapping("/detail")
    public Result detail(@RequestParam Integer pjId ) {
        MovieProject movieBoxPj = movieProjectService.getById(pjId);
        return Result.ok().data("Movice", movieBoxPj);
    }

}

